import request from "@/router/axios";

/**
 *
 * @param {Object} query 参数
 * @returns {Function} api
 */
export function getTaskTreeList(query) {
  return request({
    url: "/task/taskOperationConfig/treeList",
    method: "get",
    headers: {
      "TENANT-ID": query.tenantId
    }
  });
}

/**
 *
 * @param {Object} data 参数
 * @returns {Function} api
 */
export function saveStatus(data) {
  return request({
    url: "/task/taskOperationConfig/save?portalLoading",
    method: "post",
    data
  });
}
